//
//  SubModel.swift
//  GeneralNetworkTool
//
//  Created by Jin on 25/05/2018.
//  Copyright © 2018 Jin. All rights reserved.
//

import Foundation

class SubModel: BaseModel {
    var requestData:UserLoginRequestData?
    
    private enum CodingKeys:String,CodingKey {
        case requestData
    }
    
    override func encode(to encoder:Encoder) throws {
        var container = encoder.container(keyedBy: CodingKeys.self)
        try super.encode(to: container.superEncoder())
        try container.encodeIfPresent(requestData, forKey: .requestData)
    }
}
